package com.itheima.arraytest;

import com.itheima.common.Star;

public class ArrayTest {
    public static void main(String[] args) {
        //静态数组的定义
        int[] arr = {1, 2, 3, 4, 5};
        //动态数组的定义
        int[] arr2 = new int[5];
        arr2[0] = 1;
        arr2[1] = 2;
        arr2[2] = 3;
        arr2[3] = 4;
        arr2[4] = 5;
        System.out.println(arr2[0]);
        System.out.println(arr2[1]);


    }
}
